package com.syg.controller;

import com.syg.cycle.CycleA;
import com.syg.cycle.CycleB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author ps
 */
@Controller
@Scope("prototype")
public class ckCycle {

    @Autowired
    public CycleA cycleA;

    @Autowired
    public CycleB cycleB;


    @GetMapping(value = "/ckCycle")
    public void ckCycle() {
        System.out.println(cycleA.getCycleB().toString());
        System.out.println(cycleB.getCycleA().toString());
    }
}
